let mongoose = require('&/db')

let TopicSchema = mongoose.Schema({
  name: {type: String, required: true},
  avatar_url: {type: String},
  introduction: {type: String, select: false}
})


let TopicModel = mongoose.model('Topic', TopicSchema)

module.exports = TopicModel
